libx86: Recalculate synthesised cpuid_policy fields when appropriate
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Jul 2018 12:53:21 +0000 (13:53 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Mar 2019 14:45:47 +0000 (14:45 +0000)
commite88afede8cbc18032bcab49b3a25b472d5516cf5
tree84b5b42303442a19a86816dbb78ae19487e95661
parent1c2c9f85dd36bd908441b37ab73172358509c9b5
libx86: Recalculate synthesised cpuid_policy fields when appropriate

When filling a policy, either from CPUID or an incomming leaf stream,
recalculate the synthesised vendor value.  All callers are expected to want
this behaviour.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c
xen/include/xen/lib/x86/cpuid.h
xen/lib/x86/cpuid.c